<?php

use App\Http\Controllers\Admin;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/


//后台管理员登录
Route::post('admin/login/login', [Admin\LoginController::class, 'login']);
Route::get('admin/login/getCaptcha', [Admin\LoginController::class, 'getCaptcha']);//获取图形验证码


Route::middleware(['check.admin.token'])->prefix('admin')->group( function() {

  //管理员列表
  Route::get('/manage/list', [Admin\ManageController::class, 'manageList']);
  Route::post('/manage/add', [Admin\ManageController::class, 'manageAdd']);
  Route::post('/manage/change', [Admin\ManageController::class, 'manageChange']);
  Route::post('/manage/del', [Admin\ManageController::class, 'manageDel']);
  Route::post('/manage/changePwd', [Admin\ManageController::class, 'manageChangePwd']);//修改密码
  Route::post('/manage/changeSelfPwd', [Admin\ManageController::class, 'manageChangeSelfPwd']);//修改自己的密码



  /**
   * 前言设置
   */
  //前言列表
  Route::get('/foreword/list', [Admin\ForewordController::class, 'forewordList']);
  Route::post('/foreword/add', [Admin\ForewordController::class, 'forewordAdd']);
  Route::post('/foreword/change', [Admin\ForewordController::class, 'forewordChange']);
  Route::post('/foreword/del', [Admin\ForewordController::class, 'forewordDel']);
  Route::get('/foreword/info', [Admin\ForewordController::class, 'forewordInfo']);

   /**
   * 作品类型
   */
  Route::get('/productionType/list', [Admin\ProductionTypeController::class, 'productionTypeList']);
  Route::post('/productionType/add', [Admin\ProductionTypeController::class, 'productionTypeAdd']);
  Route::post('/productionType/change', [Admin\ProductionTypeController::class, 'productionTypeChange']);
  Route::post('/productionType/del', [Admin\ProductionTypeController::class, 'productionTypeDel']);
  Route::get('/productionType/info', [Admin\ProductionTypeController::class, 'productionTypeInfo']);
  Route::get('/productionType/filterList', [Admin\ProductionTypeController::class, 'productionTypeFilterList']);//作品类型列表（用于筛选）

  /**
   * 作品管理
   */
  Route::get('/production/list', [Admin\ProductionController::class, 'productionList']);
  Route::post('/production/add', [Admin\ProductionController::class, 'productionAdd']);
  Route::post('/production/change', [Admin\ProductionController::class, 'productionChange']);
  Route::post('/production/del', [Admin\ProductionController::class, 'productionDel']);
  Route::get('/production/info', [Admin\ProductionController::class, 'productionInfo']);


    /**
   * 视频管理
   */
  Route::get('/video/list', [Admin\VideoController::class, 'videoList']);
  Route::post('/video/add', [Admin\VideoController::class, 'videoAdd']);
  Route::post('/video/change', [Admin\VideoController::class, 'videoChange']);
  Route::post('/video/del', [Admin\VideoController::class, 'videoDel']);
  Route::get('/video/info', [Admin\VideoController::class, 'videoInfo']);


   /**
   * 作者管理
   */
  Route::get('/authors/list', [Admin\AuthersController::class, 'authorList']);
  Route::post('/authors/add', [Admin\AuthersController::class, 'authorAdd']);
  Route::post('/authors/change', [Admin\AuthersController::class, 'authorChange']);
  Route::post('/authors/del', [Admin\AuthersController::class, 'authorDel']);
  Route::get('/authors/info', [Admin\AuthersController::class, 'authorInfo']);
  Route::get('/authors/filterList', [Admin\AuthersController::class, 'authorFilterList']);//作者列表（用于筛选）

   /**
   * 机柜管理
   */
  Route::get('/bookcase/list', [Admin\BookcaseController::class, 'bookcaseList']);
  Route::post('/bookcase/add', [Admin\BookcaseController::class, 'bookcaseAdd']);
  Route::post('/bookcase/change', [Admin\BookcaseController::class, 'bookcaseChange']);
  Route::post('/bookcase/del', [Admin\BookcaseController::class, 'bookcaseDel']);
  Route::get('/bookcase/info', [Admin\BookcaseController::class, 'bookcaseInfo']);
  Route::get('/bookcase/filterList', [Admin\BookcaseController::class, 'bookcaseFilterList']);//机柜列表（用于筛选）


  Route::post('/bookcase/delExhibition', [Admin\BookcaseController::class, 'bookcaseDelExhibition']);//机柜 删除 展览
  Route::post('/bookcase/addExhibition', [Admin\BookcaseController::class, 'bookcaseAddExhibition']);//机柜 添加 展览
  //Route::post('/bookcase/configBookcase', [Admin\BookcaseController::class, 'bookcaseConfigProduction']);//机柜 配置 展览
  Route::post('/bookcase/configExhibition', [Admin\BookcaseController::class, 'bookcaseConfigProduction']);//机柜 配置 展览  2021.11.23 改

   /**
   * 展览管理
   */
  Route::get('/exhibition/list', [Admin\ExhibitionController::class, 'exhibitionList']);
  Route::post('/exhibition/add', [Admin\ExhibitionController::class, 'exhibitionAdd']);
  Route::post('/exhibition/change', [Admin\ExhibitionController::class, 'exhibitionChange']);
  Route::post('/exhibition/del', [Admin\ExhibitionController::class, 'exhibitionDel']);
  Route::get('/exhibition/info', [Admin\ExhibitionController::class, 'exhibitionInfo']);
  Route::get('/exhibition/filterList', [Admin\ExhibitionController::class, 'exhibitionFilterList']);//展览列表（用于筛选）
  Route::get('/exhibition/typeList', [Admin\ExhibitionController::class, 'getExhibitionTypeList']);//选择展览类型
  Route::get('/exhibition/addressList', [Admin\ExhibitionController::class, 'getExhibitionAddressList']);//选择展览地址
  Route::post('/exhibition/statusChange', [Admin\ExhibitionController::class, 'statusChange']);//展览显示与关闭

  Route::post('/exhibition/configProduction', [Admin\ExhibitionController::class, 'exhibitionConfigProduction']);//展览 配置 作品
  Route::post('/exhibition/delProduction', [Admin\ExhibitionController::class, 'exhibitionDelProduction']);//展览 删除 作品
  Route::post('/exhibition/addProduction', [Admin\ExhibitionController::class, 'exhibitionAddProduction']);//展览 添加 作品
  Route::post('/exhibition/configBookcase', [Admin\ExhibitionController::class, 'exhibitionConfigBookcase']);//展览 配置 机柜






});
